package org.chaiyi.template.core.common.repository;

import org.chaiyi.template.core.common.exception.BaseErrorCode;

public interface MongoEntity {

    String getId();

    default String collectionName() {
        throw BaseErrorCode.COLLECTION_METHOD_NOT_IMPLEMENT_EXCEPTION.error();
    }

}
